#ifndef _CONTROLLER_H_
#define _CONTROLLER_H_

#define ERROR						-1
#define ABORT_SERVER_ERROR		0
#define INTERNAL_SERVER_ERROR	500

struct _Controller {
	Network *network;
	Telescope *telescope;	
};

Controller * controller_new(char *);

void controller_get_settings(Controller *, char *);

void controller_start(Controller *);

void controller_stop(Controller *);

void controller_execute(Controller *);

void controller_execute_request(Controller *, Client *, char *);

void controller_handle_error(Controller *, Client *, int);

#include "Controller.c"
#endif
